<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>前端展示user</title>
</head>
<body>
<div >
	<table border="1">  
              <tr>  
                <th>id</th>  
                <th>姓名</th>  
                <th>密码</th>  
                <th>年龄</th>
              </tr>  
              <tr  th:each="user: ${users}">  
                <td th:text="${user.id}"> </td>  
                <td th:text="${user.name}"> </td>  
                <td th:text="${user.password}"> </td>  
                <th th:text="${user.age}"></th>  
              </tr>  
            </table>  
</div>


<div>

这儿写前台html，如果你是只有后台的程序，请自行修改 IndexController
</div>

</body>
</html>